package com.feeyin.radar.crm.dao.impl;

import com.feeyin.radar.crm.dao.ContractDetailUpdateHistoryDAO;
import com.feeyin.radar.crm.model.ContractDetail;
import java.util.List;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class ContractDetailUpdateHistoryDAOImpl extends SqlMapClientDaoSupport
  implements ContractDetailUpdateHistoryDAO
{
  public List getContractDetailUpdateHistorysByContractId(Integer contractId)
  {
    return getSqlMapClientTemplate().queryForList("getContractDetailUpdateHistorysByContractId", contractId);
  }

  public boolean insertContractDetailUpdateHistory(ContractDetail contractDetail)
  {
    Integer result = (Integer)getSqlMapClientTemplate().insert("insertContractDetailUpdateHistory", contractDetail);
    return result != null;
  }
}